package com.youkeda.yikao.web.dataobject;

import com.youkeda.yikao.web.validator.EmailCode;

import javax.validation.constraints.Email;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @date 2019/09/04
 */
public class ChenzikangUesrSystem implements Serializable {
    @NotBlank(message = "必输输入邮箱")
    @Email
    private String user;

    @NotBlank(message = "必须输入密码")
    @Min(value = 5)
    private String pwd;

    private Date gmtCreated;

    private String gmtModify;

    @NotBlank
    private String prefix;

    @NotBlank(message = "姓名不能为空")
    private String name;

    @NotBlank
    @EmailCode
    private String emailCode;

    @NotBlank
    private String captcha;

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Date getGmtCreated() {
        return gmtCreated;
    }

    public void setGmtCreated(Date gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public String getGmtModify() {
        return gmtModify;
    }

    public void setGmtModify(String gmtModify) {
        this.gmtModify = gmtModify;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmailCode() {
        return emailCode;
    }

    public void setEmailCode(String emailCode) {
        this.emailCode = emailCode;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }
}